﻿<UserControl x:Class="ArchiSimple.Windows.View.MainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:vm="clr-namespace:ArchiSimple.Windows.ViewModel"             
             xmlns:locale="clr-namespace:ArchiSimple.Windows"
             xmlns:v="clr-namespace:ArchiSimple.Windows.View"
             locale:Locator.Locate="vm:MainViewModel"   
             d:DataContext="{d:DesignInstance vm:MainViewModel, IsDesignTimeCreatable=True}"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid x:Name="LayoutRoot">
        <v:FileView Visibility="{Binding DataContext.Screen, ConverterParameter=File, Converter={StaticResource EnumToVisibility}, ElementName=LayoutRoot}" />
        <v:PlanView Visibility="{Binding DataContext.Screen, ConverterParameter=Plan, Converter={StaticResource EnumToVisibility}, ElementName=LayoutRoot}" />
    </Grid>
</UserControl>
